package com.woniuxy.tfss.websocket;

import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;

public class JacksonObjectMapper extends ObjectMapper {
    public JacksonObjectMapper() {
        super();
        //反序列化时配置
        super.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);

        //序列化时设置
        super.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS,false);
    }
}
